<template>
    <div class="common-layout">
        <el-container>
            <el-aside width="200px">
                This is Imformation
            </el-aside>
            <el-main>
                This is Schedule
                <!-- 加button，路由切换到competition比赛界面 -->
                <el-button type="primary" @click="navigateTo('/venue/competition')">
                    start
                </el-button>
            </el-main>
        </el-container>
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const navigateTo = (path) => {
    router.push(path)
}
</script>